<?php
class ConstUserTypes
{
    const Admin = 1;
    const User = 2;
}
class ConstUserIds
{
    const Admin = 1;
}
class ConstAttachment
{
    const UserAvatar = 1;
    const Project = 2;
}
class ConstViewType{
	const NormalView = 1;
	const EmbedView = 2;
}
class ConstViewLayout{
	const DetailedView = 'Detailed view';
	const CompactView = 'Compact view';
}
class ConstResponseFrom{
	const paypal = 1;
	const site = 0;
}
class ConstMoreAction
{
    const Inactive = 1;
    const Active = 2;
    const Delete = 3;
    const OpenID = 4;
    const Export = 5;
    const Approved = 6;
    const Disapproved = 7;
    const Featured = 8;
    const Notfeatured = 9;
    const Suspend = 10;
    const Twitter = 11;
    const Facebook = 12;
	const Flagged = 13;
	const Unflagged = 14;
	const Unsuspend = 15;
	const Normal = 38;
	const Gmail = 39;
	const Yahoo = 40;
	const Checked = 28;
    const Unchecked = 29;
    const Site = 30;
    const AffiliateUser = 37;
}
// Banned ips types
class ConstBannedTypes
{
    const SingleIPOrHostName = 1;
    const IPRange = 2;
    const RefererBlock = 3;
}
// Banned ips durations
class ConstBannedDurations
{
    const Permanent = 1;
    const Days = 2;
    const Weeks = 3;
}
class ConstMessageFolder
{
    const Inbox = 1;
    const SentMail = 2;
    const Drafts = 3;
    const Spam = 4;
    const Trash = 5;
}
class ConstPrivacySetting
{
    const EveryOne = 1;
    const Users = 2;
    const Friends = 3;
    const Nobody = 4;
}
class ConstPaymentGateways
{
    const PayPal = 1;
	const Wallet = 2;
	const NganLuong = 3;
	// mass payment manual
	const ManualPay = 5;
	const Masspay =6;
	const Testmode =7;
	const Project =8;
	const Pledge =9;
	const Active =10;
}
class ConstWithdrawalMassPayGateWays
{
	const PayPal = 21;				//2 is approved id 3 is gateway id
}
class ConstProjectStatus
{
    const Pending = 1;
    const OpenForFunding = 2;
    const FundingClosed = 3;
    const FundingExpired = 4;
    const ProjectCancelled = 5;
    const GoalReached = 6;
    const ReserveAmountReached = 7;
    const OpenForIdea = 8;
    const PaidToProjectOwner = 9;
    const RefundedDueToCancelled = 10;
}
class ConstTransactionTypes
{
    const ProjectFunding = 1;
    const Refunding = 2;
	const Project = 3;
	const User = 4;
	const UserCashWithdrawalAmount = 5;
	const AcceptCashWithdrawRequest = 7;
	const AddedToWallet = 14;
	const UserWithdrawalRequest = 18;
    const AdminApprovedWithdrawalRequest = 19;
    const AdminRejecetedWithdrawalRequest = 20;
    const FailedWithdrawalRequest = 21;
    const AmountRefundedForRejectedWithdrawalRequest = 23;
    const AmountApprovedForUserCashWithdrawalRequest = 24;
    const FailedWithdrawalRequestRefundToUser = 25;
	const AffliateUserWithdrawalRequest = 28;
	const AffliateAdminApprovedWithdrawalRequest = 29;
	const AffliateAdminRejecetedWithdrawalRequest = 30;
	const AffliateFailedWithdrawalRequest = 31;
	const AffliateAmountApprovedForUserCashWithdrawalRequest = 32;
	const AffliateAmountRefundedForRejectedWithdrawalRequest = 33;
	const AffliateFailedWithdrawalRequestRefundToUser = 34;
	const AffliateAddFundToAffiliate = 35;
	const AffliateAcceptCashWithdrawRequest = 36;
	const AmountFundedToOwner = 37;
	const Refunded = 38;
}
class ConstWithdrawalStatus
{
    const Pending = 1;
    const Approved = 2;
    const Rejected = 3;
    const Failed = 4;
    const Success = 5;
}
class ConstPledgeTypes
{
    const Any = 1;
    const Minimum = 2;
	const Fixed  = 3;
	const Multiple  = 4;
	const Reward  = 5;
}
class ConstPaymentGatewayFlow
{
	const BuyerSiteSeller = 'Buyer -> Site -> Project Owner';
	const BuyerSellerSite = 'Buyer -> Project Owner -> Site';
}
class ConstPaymentGatewayFee
{
	const Seller = 'Project Owner';
	const Site = 'Site';
	const SiteAndSeller = 'Site and Project Owner';
}
class ConstProjectUsers
{
	const Owner = 1;
	const Backer = 2;
	const Follower = 3;
}
class ConstProjectPaymentGatewayFee
{
	const Buyer = 'Project Owner';
	const Site = 'Site';
	const User = 'User';
}
/* affiliate class constatn */


class ConstAffiliateCashWithdrawalStatus
{
    const Pending = 1;
    const Approved = 2;
    const Rejected = 3;
    const Success = 4;
    const Failed = 5;
}

class ConstCommsisionType
{
    const Amount = 'amount';
    const Percentage = 'percentage';
}

class ConstAffiliateStatus
{
	const Pending = 1;
	const Canceled = 2;
	const PipeLine = 3;
	const Completed = 4;
}
class ConstAffiliateCommissionType
{
	const Percentage = 1;
	const Amount = 2;
}
class ConstAffiliateRequests
{
	const Pending = 0;
	const Accepted = 1;
	const Rejected = 2;
}
class ConstSettingsSubCategory
{
    const Regional = 31;
    const DateAndTime = 33;
}
class ConstPaymentGatewaysName
{
    const PayPal = 'PayPal Adaptive';
	const NganLuong = 'Ngân Lượng';
}
?>